package com.silence.springboot.vo.input;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@Schema(name = "PageBookStatusInput", description = "图书状态表分页查询入参")
public class PageBookStatusInput implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 图书名称
     */
    @Schema(name = "bookName", description = "图书名称")
    private String bookName;

    /**
     * 作者名称
     */
    @Schema(name = "authorName", description = "作者名称")
    private String authorName;

    /**
     * 姓名
     */
    @Schema(name = "name", description = "姓名")
    @NotBlank(message = "姓名不能为空")
    private String name;

    /**
     * 页码
     */
    @Schema(name = "pageNumber", description = "页码")
    private Integer pageNumber = 1;

    /**
     * 每页大小
     */
    @Schema(name = "pageSize", description = "每页大小")
    private Integer pageSize = 5;

}
